﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;


namespace ProjectNocturnalFool
{
    class EntitySet
    {
        #region Fields
        public List<Entity> allEntities { get; set; }
        public int turn;
        #endregion

        #region Constructor
        public EntitySet() {
            turn = 0;

            allEntities = new List<Entity>();
            allEntities.Add(new Entity(new Point(1,4)));
            allEntities.Add(new Entity(new Point(2, 5)));
        }

        #endregion

        #region Methods

        public void nextTurn() {
            if (turn < allEntities.Count-1)
            {
                turn++;
            }
            else
            {
                turn = 0;
            }
        }

        public Entity actingEntity() {
            return allEntities[turn];
        }

        #endregion

        #region Update
        public void Update(GameTime gameTime) {
            
            for (int i = 0; i < allEntities.Count; i++) {
                allEntities[i].Update(gameTime);
            }
        }
        #endregion
       
    }
}
